package com.xzzz.backend.bsms;

import com.xzzz.common.base.BaseConstants;
import com.xzzz.irda.auth.server.EnableAuthServer;
import com.xzzz.irda.tracker.core.Tracker;
import com.xzzz.irda.tracker.core.common.TrackerConstants;
import lombok.extern.slf4j.Slf4j;
import org.apache.ibatis.annotations.Mapper;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * BSMS 服务
 *
 * @author xzzz
 * 
 */
@Slf4j
@EnableAuthServer
@EnableFeignClients
@EnableDiscoveryClient
@MapperScan(annotationClass = Mapper.class)
@SpringBootApplication(scanBasePackages = {"com.xzzz.backend"})
public class BsmsApplication {

    public static void main(String[] args) {
        Tracker.start("BSMS_APPLICATION_START", TrackerConstants.SPAN_TYPE_APPLICATION_RUN);
        SpringApplication.run(BsmsApplication.class, args);
        BaseConstants.desc();
        Tracker.end();
    }
}
